package com.cdd.user;

import org.apache.shiro.authc.credential.HashedCredentialsMatcher;
import org.apache.shiro.crypto.hash.SimpleHash;
import org.springframework.util.DigestUtils;

import java.util.UUID;

/**
 * @create 2022-09-05
 */

public class Test01 {
    public static void main(String[] args) {
        String pwd="123456";
        String salt= UUID.randomUUID().toString();
        SimpleHash simpleHash= new SimpleHash("MD5",pwd,salt,1024);
        String s = simpleHash.toString();
        System.out.println(salt);
        System.out.println(s);
    }
}
